package com.pdd.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.*;

import javax.sql.DataSource;

@Configuration   // 声明自己是一个配置类，就相当于是bean.xml
@ComponentScan({"com.pdd.controller","com.pdd.service"})
@Import({JdbcConfig.class, MyBatisConfig.class})
public class SpringConfig {

}
